SnippetContext.setConstant

Sets a constatnt within the context.

This is similar to a variable set with [method@SnippetContext.set_variable] but is expected to not change during use of the snippet.

Examples would be the date or users name.

class SnippetContext
void
setConstant
(
string key
,
string value
)

Parameters

key string

the constant name

value string

the value of the constant

Meta